﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/RopaOnline.Master" AutoEventWireup="true"
	CodeBehind="StreetTypeManagement.aspx.cs" Inherits="Upsam.RopaOnline.Web.StreetTypeManagement" %>

<asp:Content ID="cntHead" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="cntContext" ContentPlaceHolderID="cphContext" runat="server">
	<asp:FormView ID="fvwStreetType" runat="server" BackColor="White" BorderColor="#E7E7FF"
		BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="IdTipoCalle"
		OnItemCommand="fvwStreetType_ItemCommand" OnItemInserted="fvwStreetType_ItemInserted"
		OnItemUpdated="fvwStreetType_ItemUpdated" DataSourceID="ldsStreetType" GridLines="Horizontal"
		CssClass="formView">
		<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
		<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
		<EditItemTemplate>
			IdTipoCalle:
			<asp:Label ID="IdTipoCalleLabel1" runat="server" Text='<%# Eval("IdTipoCalle") %>' />
			<br />
			Tipo de Calle:
			<asp:TextBox ID="TipoCalle1TextBox" runat="server" Text='<%# Bind("TipoCalle1") %>' />
			<br />
			<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
				Text="Guardar" />
			&nbsp;<asp:LinkButton ID="ViewButton" runat="server" CausesValidation="True" CommandName="View"
				Text="Ver" />
			&nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False"
				CommandName="Cancel" Text="Cancelar" />
		</EditItemTemplate>
		<InsertItemTemplate>
			TipoCalle1:
			<asp:TextBox ID="TipoCalle1TextBox" runat="server" Text='<%# Bind("TipoCalle1") %>' />
			<br />
			<asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
				Text="Insert" />
			&nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False"
				CommandName="Cancel" Text="Cancel" />
		</InsertItemTemplate>
		<ItemTemplate>
			IdTipoCalle:
			<asp:Label ID="IdTipoCalleLabel" runat="server" Text='<%# Eval("IdTipoCalle") %>' />
			<br />
			TipoCalle1:
			<asp:Label ID="TipoCalle1Label" runat="server" Text='<%# Bind("TipoCalle1") %>' />
			<br />
			<asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit"
				Text="Edit" />
			&nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New"
				Text="New" />
		</ItemTemplate>
		<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
		<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
		<EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
	</asp:FormView>
	<asp:LinqDataSource ID="ldsStreetType" runat="server" ContextTypeName="Upsam.RopaOnline.Modelo.Data.RopaOnLineDataContext"
		EnableInsert="True" EnableUpdate="True" TableName="TipoCalles" Where="IdTipoCalle == @IdTipoCalle">
		<WhereParameters>
			<asp:QueryStringParameter DefaultValue="0" Name="IdTipoCalle" QueryStringField="IdEntity"
				Type="Int32" />
		</WhereParameters>
	</asp:LinqDataSource>
</asp:Content>
